package com.liu.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.domain.Sort;

import java.io.Serializable;

/**
 * @ClassName LiuBaseEntity
 * @Author liuxin
 * @Date Created in 2023-01-25 16:16
 * @Version 1.0
 */

@AllArgsConstructor
@NoArgsConstructor
@Data

//这里哪个entity分页需要的时候就可以继承这个类

public class LiuBaseEntity implements Serializable {
    private static final long serialVersionUID =1L;

    //这里是分页使用的共用字段，可以再添加

    private int page;
    private int size;
    private Sort sort;
}
